package com.me.mynanogame;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;

public class StaticSprites {
	public static Sprite bgScreen;
	public static Sprite deadDragon;
	public static Sprite wallPaper;
	public static Sprite[] gold;
	public static Sprite[] silver;
	public static Sprite[] red;
	public static Sprite[] blue;
	public static Sprite[] green;
	public static Sprite[] yellow;
	public static Sprite black;
	public static Sprite[] purple;
	public static Sprite[] white;
	public static Sprite[] visibleStack;
	public static Sprite player1Stack;
	public static Sprite protossP;
	public static Sprite protossPS;
	public static Sprite sidePanel;
	public static Sprite dragon2;
	public static Sprite dragonBG;
	public static Sprite blackGUI;

	public static void initiate(){
		bgScreen = new Sprite(StaticTextures.bgScreen);
		wallPaper = new Sprite(StaticTextures.wallpaper);
		deadDragon = new Sprite(StaticTextures.deadDragon);

		player1Stack = new Sprite(StaticTextures.visible1Stack);
		protossP = new Sprite(StaticTextures.protossPortait);
		protossPS = new Sprite(StaticTextures.protossPortaitSug);
		StaticSprites.protossPS.setSize(StaticSprites.protossPS.getWidth()/5, StaticSprites.protossPS.getHeight()/5);
		sidePanel = new Sprite(StaticTextures.sidePanel);
		black = new Sprite(StaticTextures.BlackGem);
		blackGUI = new Sprite(StaticTextures.BlackGem);
		StaticSprites.blackGUI.setSize(StaticSprites.blackGUI.getWidth()/10, StaticSprites.blackGUI.getHeight()/10);
		dragon2 = new Sprite(StaticTextures.sideDragon);
		dragonBG = new Sprite(StaticTextures.dragonSurface);
		StaticSprites.black.setSize(StaticSprites.black.getWidth()/10, StaticSprites.black.getHeight()/10);
		visibleStack = new Sprite[6];
		for(int i = 0; i < 6; i++){
			visibleStack[i] = new Sprite(StaticTextures.visibleStack);
		}
		//initialising gems
		gold = new Sprite[20];
		for(int i = 0; i < 20; i++){
			gold[i] = new Sprite(StaticTextures.Gold);
			StaticSprites.gold[i].setSize(StaticSprites.gold[i].getWidth()/10, StaticSprites.gold[i].getHeight()/10);
		}
		silver = new Sprite[35];
		for(int i = 0; i < 35; i++){
			silver[i] = new Sprite(StaticTextures.Silver);
			StaticSprites.silver[i].setSize(StaticSprites.silver[i].getWidth()/10, StaticSprites.silver[i].getHeight()/10);
		}
		red = new Sprite[20];
		for(int i = 0; i < 20; i++){
			red[i] = new Sprite(StaticTextures.RedGem);
			StaticSprites.red[i].setSize(StaticSprites.red[i].getWidth()/10, StaticSprites.red[i].getHeight()/10);
		}
		blue = new Sprite[20];
		green = new Sprite[20];
		yellow = new Sprite[20];
		purple = new Sprite[20];
		for(int i = 0; i < 20; i++){
			blue[i] = new Sprite(StaticTextures.BlueGem);
			green[i] = new Sprite(StaticTextures.GreenGem);
			yellow[i] = new Sprite(StaticTextures.YellowGem);
			purple[i] = new Sprite(StaticTextures.PurpleGem);
			StaticSprites.purple[i].setSize(StaticSprites.purple[i].getWidth()/10, StaticSprites.purple[i].getHeight()/10);
			StaticSprites.blue[i].setSize(StaticSprites.blue[i].getWidth()/10, StaticSprites.blue[i].getHeight()/10);
			StaticSprites.yellow[i].setSize(StaticSprites.yellow[i].getWidth()/10, StaticSprites.yellow[i].getHeight()/10);
			StaticSprites.green[i].setSize(StaticSprites.green[i].getWidth()/10, StaticSprites.green[i].getHeight()/10);
		}
		white = new Sprite[20];
		for(int i = 0; i < 20; i++){
			white[i] = new Sprite(StaticTextures.WhiteGem);
			StaticSprites.white[i].setSize(StaticSprites.white[i].getWidth()/10, StaticSprites.white[i].getHeight()/10);
		}
	}
}
